class CRPEngine

This section describes the class CRPEngine:publicCObject and methods.

class CRPEngine : public CObject

The CRPEngine class is designed so that there should be only one CRPEngine object in the entire application. The CRPEngine object contains methods that are common to all print jobs (SQL connections, version information, etc.). More importantly, CRPEngine is responsible for creating and managing all CRPEJob objects. It is the CRPEJob object that allows you access to the attributes of a print job.

In order to open a particular report, it is first necessary to have an open Crystal Report Engine object in the application. You may then call the CRPEngine::OpenPrintJob member function specifying the report file name that you want to open. If successful, you will be returned a pointer to a CRPEJob object.

Constructor CRPEngine::CRPEngine

CRPEngine::CRPEngine is the constructor for the class. If the open parameter is true, the actual Crystal Reports DLL is opened (crpe32.dll). Print jobs may only be opened if the engine itself is open. If originally opened with open = FALSE, the engine may be opened later with CRPEngine::Open.

Constructor Syntax
CRPEngine ( BOOL open );
Parameter

open

Indicates whether the Crystal Report Engine should be opened when the CRPEngine object is created. The default for this parameter is FALSE.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com